package org.csu.sei.entity.DTO;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.csu.sei.entity.Category;

@Data
public class CategoryDTO {

    private Long id;
    private String name;

    public CategoryDTO(){}

    public CategoryDTO(Category category){
        this.id = category.getId();
        this.name = category.getName();
    }


    public static CategoryDTO returnCategory(Category category){
        return new CategoryDTO(category);
    }

}
